SftTree/OCX 7.0

SftTree.ItemHeight Property

Softel vdm, Inc.

Returns the height of one item in the tree control.

Deprecated - Provided for compatibility with earlier versions only - Use Items.Height or Item.Height instead

Syntax       

Get

VB.NET

Height = object.get_ItemHeight(ByVal ItemIndex As Object)  As Single

VB

Height = object.ItemHeight(ByVal ItemIndex As Variant)  As Single

C#.NET

float Height = object.get_ItemHeight(object ItemIndex);

VC++

float Height = object->ItemHeight[const _variant_t& ItemIndex];
float Height = object->GetItemHeight(const _variant_t& ItemIndex);

C

HRESULT object->get_ItemHeight(VARIANT ItemIndex, float* Height);

Delphi

Height := object.ItemHeight[ItemIndex : OleVariant]   : Single;

object

A SftTree object.

ItemIndex

The zero-based index of the item whose height is to be returned.  In a fixed height tree control, -1 can be specified to retrieve the height for all items.  Visual Basic: This is an optional parameter and can only be used if variable height items are used (see Items.Style).

Height

Returns the height of one item in the tree control.  The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.Height or Item.Height instead

The ItemHeight property returns the height of one item in the tree control.

ItemHeight applies to a tree control with variable height items only (see Items.Style).  For fixed height items, the ItemHeight1 property can be used instead.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com